<%--
  Created by IntelliJ IDEA.
  User: gz
  Date: 2025/02/16
  Time: 23:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>
    <%
        ServletContext context = request.getServletContext();
        if (context.getAttribute("oper").equals("+")){
            out.println("num1+num2="+context.getAttribute("res"));
        }else {
            out.println("num1-num2="+context.getAttribute("res"));
        }
    %>
</h1>
<a href="<%=request.getContextPath()%>/homework1.jsp">返回重新再来一次</a>
</body>
</html>
